<?php

class Core_Action_Admin_System_I18n_Datetime_Index extends Action_Admin
{
	public function execute($request, $initial = false, $script = null)
	{
		if ($initial)
		{
			Agilet::setVar('breadcrum', array(
				array(
					'url' => 'admin/system',
					'label' => 'System'
				),
				array(
					'url' => 'admin/system/i18n',
					'label' => 'International'
				),
				array(
					'url' => 'admin/system/i8n/datetime',
					'label' => 'Date and Time'
				)
			));
		}

		$table = Model::getTable('core/i18n/datetime');

		$items = $table -> fetchAll();

		$request -> response = View::render($script = 'core/html/admin/system/i18n/datetime/index', $data = array('items' => $items));
	}

}
